/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ykht.proj.activity.entity.CnActivity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 活动表  DTO
 *
 * @author csg
 * @date 2020-12-23 11:13:32
 */
@Data
@ApiModel(value = "活动表")
public class CnActivityDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Long id;
	/**
	 * 活动名称
	 */
	@NotBlank(message = "活动名称不能为空")
	@ApiModelProperty(value = "活动名称")
	private String name;
	/**
	 * 活动外显图
	 */
	@ApiModelProperty(value = "活动外显图")
	@NotBlank(message = "活动外显图不能为空")
	private String externalImg;
	/**
	 * 活动外显标题
	 */
	@NotBlank(message = "活动外显标题不能为空")
	@ApiModelProperty(value = "活动外显标题")
	private String externalTitle;
	/**
	 * 副标题
	 */
	@ApiModelProperty(value = "副标题")
	private String subTitle;
	/**
	 * 活动开始时间
	 */
	@NotBlank(message = "活动开始时间不能为空")
	@ApiModelProperty(value = "活动开始时间")
	private LocalDateTime startTime;
	/**
	 * 活动结束时间
	 */
	@NotBlank(message = "活动结束时间不能为空")
	@ApiModelProperty(value = "活动结束时间")
	private LocalDateTime endTime;
	/**
	 * 活动会员卡图
	 */
	@NotBlank(message = "活动会员卡图不能为空")
	@ApiModelProperty(value = "活动会员卡图")
	private String vipImg;
	/**
	 * 会员卡标题（卡名)
	 */
	@NotBlank(message = "会员卡标题（卡名)不能为空")
	@ApiModelProperty(value = "会员卡标题（卡名)")
	private String vipTitle;
	/**
	 * 活动规则
	 */
	@NotBlank(message = "活动规则不能为空")
	@ApiModelProperty(value = "活动规则")
	private String activityRule;
	/**
	 * 支付金额(购买活动的金额)
	 */
	@NotBlank(message = "支付金额(购买活动的金额)不能为空")
	@ApiModelProperty(value = "支付金额(购买活动的金额)")
	private BigDecimal payAmount;
	/**
	 * 可选商家数量
	 */
	@NotBlank(message = "可选商家数量不能为空")
	@ApiModelProperty(value = "可选商家数量")
	private Integer shopNumber;
	/**
	 * 消费金额(请填写0-9999)
	 */
	@ApiModelProperty(value = "消费金额(请填写0-9999)")
	private BigDecimal consumptionAmount;
	/**
	 * 折扣力度
	 */
	@NotBlank(message = "折扣力度不能为空")
	@ApiModelProperty(value = "折扣力度")
	private BigDecimal discount;
	/**
	 * 消费次数(用户消费次数)
	 */
	@NotBlank(message = "消费次数(用户消费次数)不能为空")
	@ApiModelProperty(value = "消费次数(用户消费次数)")
	private Integer userConsumptionNumber;
	/**
	 * 优惠有效时间状态（0有  1没有）
	 */
	@NotBlank(message = "优惠有效时间状态不能为空")
	@ApiModelProperty(value = "优惠有效时间状态（0有  1没有）")
	private Integer discountTimeStatus;
	/**
	 * 优惠有效开始时间
	 */
	@ApiModelProperty(value = "优惠有效开始时间")
	private LocalDateTime discountStaTime;
	/**
	 * 优惠有效结束时间
	 */
	@ApiModelProperty(value = "优惠有效结束时间")
	private LocalDateTime discountEndTime;
	/**
	 * 排序数字
	 */
	@NotBlank(message = "排序数字不能为空")
	@ApiModelProperty(value = "排序数字")
	private Integer sort;
	/**
	 * 是否展示0是1否
	 */
	@NotBlank(message = "是否展示不能为空")
	@ApiModelProperty(value = "是否展示0是1否")
	private Integer display;
	/**
	 * 活动标签(0是通用)
	 */
	@NotBlank(message = "活动标签不能为空")
	@ApiModelProperty(value = "活动标签(0是通用)")
	private Long activityLabel;
	/**
	 * 分类名称
	 */
	@NotBlank(message = "分类名称不能为空")
	@ApiModelProperty(value = "分类名称")
	private String typeName;
	@ApiModelProperty(value = "门店ID（商铺ID）")
	private String[] shopIds;
	@ApiModelProperty(value="创建时间开始")
	private LocalDateTime createTimeStart;
	@ApiModelProperty(value="创建时间结束")
	private LocalDateTime createTimeEnd;
	@ApiModelProperty(value="门店ID字符串")
	private String shopIdShow;
	@ApiModelProperty(value="门店名称字符串")
	private String shopNameShow;
	@ApiModelProperty(value="门店名称字符串")
	private String[] shopNames;



	@ApiModelProperty(value="0正常1已过期")
	private Integer expireStatus;

	@ApiModelProperty(value="活动标签name")
	private String activityLabelName;
	@ApiModelProperty(value="活动标签类型:0通用1标签")
	private Integer labelType;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value="创建人")
	private Long createUser;
	/**
	 * 修改人
	 */
	@ApiModelProperty(value="修改人")
	private Long updateUser;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value="更新时间")
	private LocalDateTime updateTime;
	/**
	 * 0可用1删除
	 */
	@ApiModelProperty(value="0可用1删除")
	private Integer delFlag;
	/**
	 * 租户ID
	 */
	@ApiModelProperty(value="租户ID",hidden=true)
	private Integer tenantId;
	/**
	 * 门店集合（id  name）
	 */
	@ApiModelProperty(value="租户ID",hidden=true)
	private List<CnActivityShopVO> cnActivityShopVOList;
}
